package com.penjin.android.activity.regist;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;

import com.penjin.android.R;
import com.penjin.android.view.TitleBarView;

/**
 * Created by Administrator on 2016/4/21.
 */
public class RegistLawActivity extends Activity {

    TitleBarView titleBarView;
    WebView webView;

    private boolean isLawLoaded = false;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_activity_showlaw);
        initView();
    }

    private void initView() {
        titleBarView = (TitleBarView) findViewById(R.id.titleBarView);
        titleBarView.setTitleBarListener(new TitleBarView.TitleBarListener() {
            @Override
            public void left(View view) {
                finish();
            }

            @Override
            public void center(View view) {

            }

            @Override
            public void right(View view) {

            }
        });
        webView = (WebView) findViewById(R.id.webView);
    }


    @Override
    protected void onResume() {
        super.onResume();
        if (!isLawLoaded) {
            webView.loadUrl("http://211.149.199.42:88/Account/Protocal");
        }
    }
}
